package com.kingyun.gpsinspection.purificationservice.dao.mapper.iam.qhse;


import com.kingyun.gpsinspection.purificationservice.facade.model.BootstrapSearchBean;
import com.kingyun.gpsinspection.purificationservice.facade.model.iam.qhse.AccidentAndEvent;

import java.util.List;

public interface AccidentAndEventMapper {
    /**
     * 删除
     * @param accidentAndEventIds
     * @return
     */
    int deleteByPrimaryKey(List<String> accidentAndEventIds);

    /**
     * 新增
     * @param record
     * @return
     */
    int insertSelective(AccidentAndEvent record);
    /**
     * 根据id查询事故事件
     * @param accidentAndEventId
     * @return
     */
    AccidentAndEvent selectByPrimaryKey(String accidentAndEventId);
    /**
     * 更新
     * @param record
     * @return
     */
    int updateByPrimaryKeySelective(AccidentAndEvent record);

    /**
     * 总条数
     * @param bootstrapSearchBean
     * @return
     */
    Integer queryCount(BootstrapSearchBean bootstrapSearchBean);

    /**
     * 列表查询
     * @param bootstrapSearchBean
     * @return
     */
    List<AccidentAndEvent> queryList(BootstrapSearchBean bootstrapSearchBean);

    /**
     * 判断事故事件名是否存在
     * @param accName
     * @return
     */
    int isExitByName(String accName);
}